﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SimpleNotify.PushLibrary.Translators
{
    public static class PushResultTranslator
    {
        public static NotifyService.PushResult EntityToDataContract(PushResult fromType)
        {
            NotifyService.PushResult to = new NotifyService.PushResult();
            to.ClientHostname = fromType.ClientHostname;
            to.Error = fromType.Error;
            to.NotificationReceived = fromType.NotificationReceived;
            return to;
        }

        public static PushResult DataContractToEntity(NotifyService.PushResult fromType)
        {
            PushResult to = new PushResult();
            to.ClientHostname = fromType.ClientHostname;
            to.Error = fromType.Error;
            to.NotificationReceived = fromType.NotificationReceived;
            return to;
        }
    }
}
